package com.tool.rabbitmq.binding;

import com.tool.rabbitmq.enums.ExchangeType;

import javax.validation.constraints.NotBlank;

/**
 * @author : zhaoxuan
 * @date : 2021/9/10 22:20
 * @description : RabbitBinding
 */
public class RabbitBinding {
    private static final String EMPTY = "";

    private String exchange = EMPTY;
    private ExchangeType exchangeType = ExchangeType.DIRECT;
    private String routingKey = EMPTY;
    @NotBlank
    private String queue;

    public RabbitBinding() {
    }

    public RabbitBinding(String exchange, String routingKey, String queue) {
        this.exchange = exchange;
        this.routingKey = routingKey;
        this.queue = queue;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue;
    }

    public ExchangeType getExchangeType() {
        return exchangeType;
    }

    public void setExchangeType(ExchangeType exchangeType) {
        this.exchangeType = exchangeType;
    }
}
